#pragma once
#include <d3d9.h>
#pragma comment (lib,"d3d9.lib")
#include <d3dx9.h>
#pragma comment (lib,"d3dx9.lib")

#define APP_CLASS L"SampleWindow"
#define MAIN_WINDOW_TITLE L"Sample"

#define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 480

#define FRAME_RATE 30
class Register
{
private:
	HINSTANCE sm_instance;
	HWND sm_handle;
public:
	Register(HINSTANCE,HWND);
	bool InitWindow(HINSTANCE,int);
	static LRESULT CALLBACK winproc(HWND,UINT,WPARAM,LPARAM);
	HINSTANCE GetInstance();
	HWND GetHandle();
};

